package com.banyechan.lingo_words.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.time.Instant;
import java.util.HashSet;

@Slf4j
@RestController
@RequestMapping("/home")
public class HomeController {

    @GetMapping("/index")
    public String welcome() throws NoSuchAlgorithmException {
        log.info("============ start  =============");

        return "welcome to lingo_word";
    }

}
